﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Syspetro.DepConsul
{
    public class ConsulRegistOption
    {
        /// <summary>
        /// 服务名称
        /// </summary>
        public string Name { get; set; } = "defaultservice";
        /// <summary>
        /// 服务IP
        /// </summary>
        public string Address { get; set; } = "localhost";
        /// <summary>
        /// 服务端口
        /// </summary>
        public int Port { get; set; } = 5000;
        /// <summary>
        /// 权重
        /// </summary>
        public int Weight { get; set; }
        /// <summary>
        /// 服务健康检查地址
        /// </summary>
        public string HealthCheck { get; set; }= "http://{0}:{1}/Health";
    }
}
